
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>6.3.7 黑洞 · 命令进阶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="login.html" />
    
    
    <link rel="prev" href="crown.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    引言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../concepts/concepts.html">
            
                <a href="../../concepts/concepts.html">
            
                    
                    1 基础概念
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../concepts/space.html">
            
                <a href="../../concepts/space.html">
            
                    
                    1.1 坐标、朝向、区块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../concepts/time.html">
            
                <a href="../../concepts/time.html">
            
                    
                    1.2 时间、顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../concepts/execution.html">
            
                <a href="../../concepts/execution.html">
            
                    
                    1.3 命令执行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../concepts/selector/selector.html">
            
                <a href="../../concepts/selector/selector.html">
            
                    
                    1.4 目标选择器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../../concepts/stats.html">
            
                <a href="../../concepts/stats.html">
            
                    
                    1.5 命令执行统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../common-format/common-format.html">
            
                <a href="../../common-format/common-format.html">
            
                    
                    2 常用命令格式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../common-format/json/json.html">
            
                <a href="../../common-format/json/json.html">
            
                    
                    2.1 JSON文本
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../../common-format/json/type.html">
            
                <a href="../../common-format/json/type.html">
            
                    
                    2.1.1 JSON文本类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../../common-format/json/formatting.html">
            
                <a href="../../common-format/json/formatting.html">
            
                    
                    2.1.2 JSON样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.3" data-path="../../common-format/json/event.html">
            
                <a href="../../common-format/json/event.html">
            
                    
                    2.1.3 JSON事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.4" data-path="../../common-format/json/array.html">
            
                <a href="../../common-format/json/array.html">
            
                    
                    2.1.4 JSON分项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.5" data-path="../../common-format/json/sign-book.html">
            
                <a href="../../common-format/json/sign-book.html">
            
                    
                    2.1.5 告示牌及成书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.6" data-path="../../common-format/json/other.html">
            
                <a href="../../common-format/json/other.html">
            
                    
                    2.1.6 杂项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.7" data-path="../../common-format/json/keys.html">
            
                <a href="../../common-format/json/keys.html">
            
                    
                    2.1.A 附录: keybind列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../common-format/nbt/nbt.html">
            
                <a href="../../common-format/nbt/nbt.html">
            
                    
                    2.2 NBT及结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../../common-format/nbt/simple.html">
            
                <a href="../../common-format/nbt/simple.html">
            
                    
                    2.2.1 基本类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../../common-format/nbt/example.html">
            
                <a href="../../common-format/nbt/example.html">
            
                    
                    2.2.2 NBT实战
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../command/command.html">
            
                <a href="../../command/command.html">
            
                    
                    3 如何执行命令
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../command/chat.html">
            
                <a href="../../command/chat.html">
            
                    
                    3.1 聊天栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../command/cb.html">
            
                <a href="../../command/cb.html">
            
                    
                    3.2 命令方块简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../command/function.html">
            
                <a href="../../command/function.html">
            
                    
                    3.3 命令函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../scoreboard/scoreboard.html">
            
                <a href="../../scoreboard/scoreboard.html">
            
                    
                    4 记分板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../scoreboard/objective.html">
            
                <a href="../../scoreboard/objective.html">
            
                    
                    4.1 记分板变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../scoreboard/team.html">
            
                <a href="../../scoreboard/team.html">
            
                    
                    4.2 记分板队伍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../scoreboard/tag.html">
            
                <a href="../../scoreboard/tag.html">
            
                    
                    4.3 记分板标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../scoreboard/command.html">
            
                <a href="../../scoreboard/command.html">
            
                    
                    4.4 记分板命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../../scoreboard/example.html">
            
                <a href="../../scoreboard/example.html">
            
                    
                    4.5 记分板实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.5.1" data-path="../../scoreboard/examples/example1.html">
            
                <a href="../../scoreboard/examples/example1.html">
            
                    
                    4.5.1 循环电路|记分板的基础操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.2" data-path="../../scoreboard/examples/example2.html">
            
                <a href="../../scoreboard/examples/example2.html">
            
                    
                    4.5.2 自定义命令|stats与记分板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.3" data-path="../../scoreboard/examples/example3.html">
            
                <a href="../../scoreboard/examples/example3.html">
            
                    
                    4.5.3 击杀率|operation与准则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.4" data-path="../../scoreboard/examples/example4.html">
            
                <a href="../../scoreboard/examples/example4.html">
            
                    
                    4.5.4 漂亮的排名|显示与队伍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.5" data-path="../../scoreboard/examples/example5.html">
            
                <a href="../../scoreboard/examples/example5.html">
            
                    
                    4.5.5 简单登入系统|function与综合运用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../logic/logic.html">
            
                <a href="../../logic/logic.html">
            
                    
                    5 基础逻辑
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../logic/enum.html">
            
                <a href="../../logic/enum.html">
            
                    
                    5.1 穷举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../logic/score.html">
            
                <a href="../../logic/score.html">
            
                    
                    5.2 分数处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../logic/bool.html">
            
                <a href="../../logic/bool.html">
            
                    
                    5.3 布尔逻辑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../logic/loop.html">
            
                <a href="../../logic/loop.html">
            
                    
                    5.4 循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../logic/event.html">
            
                <a href="../../logic/event.html">
            
                    
                    5.5 事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../logic/marker.html">
            
                <a href="../../logic/marker.html">
            
                    
                    5.6 实体Marker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../logic/execute.html">
            
                <a href="../../logic/execute.html">
            
                    
                     5.7 execute进阶
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../practise.html">
            
                <a href="../practise.html">
            
                    
                    6 实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../objects.html">
            
                <a href="../objects.html">
            
                    
                    6.1 游戏内物件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../test-debug.html">
            
                <a href="../test-debug.html">
            
                    
                    6.2 命令系统测试及调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="examples.html">
            
                <a href="examples.html">
            
                    
                    6.3 更多命令系统例子
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.3.1" data-path="furnace.html">
            
                <a href="furnace.html">
            
                    
                    6.3.1 熔炉过热系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.2" data-path="badapple.html">
            
                <a href="badapple.html">
            
                    
                    6.3.2 毒苹果
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.3" data-path="rain.html">
            
                <a href="rain.html">
            
                    
                    6.3.3 下雨检测
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.4" data-path="chest_replace.html">
            
                <a href="chest_replace.html">
            
                    
                    6.3.4 替换方块实体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.5" data-path="skill.html">
            
                <a href="skill.html">
            
                    
                    6.3.5 技能系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.6" data-path="crown.html">
            
                <a href="crown.html">
            
                    
                    6.3.6 皇冠系统
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.3.7" data-path="blackhole.html">
            
                <a href="blackhole.html">
            
                    
                    6.3.7 黑洞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.8" data-path="login.html">
            
                <a href="login.html">
            
                    
                    6.3.8 登录系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../data-files/data-files.html">
            
                <a href="../../data-files/data-files.html">
            
                    
                    7 游戏文件的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../data-files/resourcepack/resourcepack.html">
            
                <a href="../../data-files/resourcepack/resourcepack.html">
            
                    
                    7.1 资源包
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1.1" data-path="../../data-files/resourcepack/textures.html">
            
                <a href="../../data-files/resourcepack/textures.html">
            
                    
                    7.1.1 材质
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.2" data-path="../../data-files/resourcepack/models.html">
            
                <a href="../../data-files/resourcepack/models.html">
            
                    
                    7.1.2 模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.3" data-path="../../data-files/resourcepack/sound.html">
            
                <a href="../../data-files/resourcepack/sound.html">
            
                    
                    7.1.3 声音
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../data-files/loot-table.html">
            
                <a href="../../data-files/loot-table.html">
            
                    
                    7.2 Loot table
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../data-files/advancements/advancements.html">
            
                <a href="../../data-files/advancements/advancements.html">
            
                    
                    7.3 Advancement
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.3.1" data-path="../../data-files/advancements/examples.html">
            
                <a href="../../data-files/advancements/examples.html">
            
                    
                    Advancement例子
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    8 杂项
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" >
            
                <a target="_blank" href="https://commandtutorials.neocities.org/">
            
                    
                    8.1 其他资源
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../../misc/success.html">
            
                <a href="../../misc/success.html">
            
                    
                    8.2 如何成为一个成功的CBer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../../misc/question.html">
            
                <a href="../../misc/question.html">
            
                    
                    8.3 问问题的技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../../misc/quotes.html">
            
                <a href="../../misc/quotes.html">
            
                    
                    8.4 其他CBer的建言
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >6.3.7 黑洞</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x9ED1;&#x6D1E;">&#x9ED1;&#x6D1E;</h1>
<blockquote>
<p>&#x6570;&#x5B66;&#x4E0D;&#x597D;&#x4E0D;&#x4F1A;&#x5199;&#xFF0C;&#x8BF7;dalao&#x591A;&#x591A;&#x4F53;&#x8C05;</p>
</blockquote>
<p>&#x672C;&#x9898;&#x76EE;&#x51FA;&#x81EA;CBL&#x524D;&#x65B0;&#x624B;&#x7FA4;&#xFF08;&#x73B0;&#x6280;&#x672F;<del>&#x6478;&#x9C7C;</del>&#x4EA4;&#x6D41;&#x7FA4;&#xFF09;&#x95EE;&#x7B54;&#x6BD4;&#x8D5B;&#x3002;</p>
<p>&#x9898;&#x76EE;:</p>
<blockquote>
<p>32*32&#x7684;&#x573A;&#x5730;&#x6709;&#x4E00;&#x4E2A;&#x786E;&#x5B9A;&#x7684;&#x4E2D;&#x70B9;&#xFF0C;&#x8303;&#x56F4;&#x5185;&#x73A9;&#x5BB6;&#x5747;&#x4F1A;&#x53D7;&#x5230;&#x503C;&#x4E3A;&#x6BCF;&#x79D2;0.5&#x683C;&#xFF0C;&#x65B9;&#x5411;&#x5BF9;&#x51C6;&#x8FD9;&#x4E2A;&#x4E2D;&#x5FC3;&#x70B9;&#x7684;&#x901F;&#x5EA6;&#x5206;&#x91CF;&#x3002;</p>
</blockquote>
<p>&#x76EE;&#x524D;&#x5DF2;&#x7ECF;&#x6709;&#x8239;&#x9ED1;&#x79D1;&#x6280;&#xFF0C;&#x7136;&#x800C;&#x8239;&#x9ED1;&#x79D1;&#x6280;&#x6BD4;&#x8F83;&#x96BE;&#x4EE5;&#x63A7;&#x5236;&#x901F;&#x5EA6;&#xFF08;&#x4E00;&#x5C42;=0.2&#x7C73;&#xFF0C;&#x4E0D;&#x53EF;&#x80FD;0.5&#x7C73;&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x8FD8;&#x662F;&#x9700;&#x8981;&#x7528;&#x522B;&#x7684;&#x65B9;&#x6CD5;&#x7684;&#x3002;</p>
<p>&#x800C;&#x6211;&#x4EEC;&#x9009;&#x62E9;&#x7684;&#x65B9;&#x6CD5;&#x5C31;&#x662F;&#x7A77;&#x4E3E;&#x3002;</p>
<h2 id="&#x7A77;&#x4E3E;">&#x7A77;&#x4E3E;</h2>
<p>&#x6211;&#x4EEC;&#x9996;&#x5148;&#x8981;&#x89E3;&#x51B3;&#x7684;&#x95EE;&#x9898;&#x5C31;&#x662F;&#xFF0C;&#x5982;&#x4F55;&#x5F97;&#x77E5;&#x4E2D;&#x5FC3;&#x5728;&#x54EA;&#x4E2A;&#x89D2;&#x5EA6;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x7A77;&#x4E3E;&#x4E0D;&#x540C;&#x5750;&#x6807;&#xFF0C;&#x7A77;&#x4E3E;&#x51FA;&#x6BCF;&#x4E2A;&#x5750;&#x6807;&#x5206;&#x522B;&#x5728;&#x4E2D;&#x5FC3;&#x7684;&#x54EA;&#x4E2A;&#x65B9;&#x4F4D;&#xFF0C;&#x7136;&#x540E;&#x7A77;&#x4E3E;&#x4F20;&#x9001;&#x7684;&#x503C;&#x3002;<br>&#x7136;&#x800C;&#x8FD9;&#x65B9;&#x6CD5;&#x7684;&#x7CBE;&#x5EA6;&#x4E0D;&#x8DB3;&#xFF08;&#x4E00;&#x4E2A;&#x65B9;&#x5757;&#x91CC;&#x4E5F;&#x80FD;&#x6709;&#x4E0D;&#x540C;&#x4F4D;&#x7F6E;&#xFF09;&#xFF0C;&#x6211;&#x4EEC;&#x4E0D;&#x4F1A;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5728;&#x4E2D;&#x5FC3;&#x56DB;&#x5468;&#xFF08;&#x5706;&#x5F62;&#xFF09;&#x653E;&#x4E00;&#x5927;&#x5806;marker&#x5B9E;&#x4F53;&#xFF0C;&#x6BCF;&#x4E2A;&#x4EE3;&#x8868;&#x4E00;&#x4E2A;&#x76F8;&#x5E94;&#x89D2;&#x5EA6;&#xFF0C;&#x8BA9;&#x73A9;&#x5BB6;&#x9009;&#x62E9;&#x6700;&#x8FD1;&#x7684;&#x90A3;&#x4E2A;&#x3002;&#x5F88;&#x96BE;&#x89E3;&#x91CA;&#x76F4;&#x63A5;&#x4E0A;&#x56FE;&#x7B97;&#x4E86;&#x3002;</p>
<p><img src="images/angle.png" alt=""></p>
<p>&#x7EFF;&#x8272;&#x4EE3;&#x8868;&#x9ED1;&#x6D1E;&#x4E2D;&#x5FC3;&#x3002;&#x9ED1;&#x8272;&#x5706;&#x5F62;&#x5916;&#x6846;&#x4EE3;&#x8868;&#x6211;&#x4EEC;&#x7A77;&#x4E3E;&#x751F;&#x6210;&#x7684;marker&#xFF0C;&#x6CE8;&#x610F;marker&#x7684;&#x4F4D;&#x7F6E;&#x5FC5;&#x987B;&#x7CBE;&#x51C6;&#x6D4B;&#x91CF;&#xFF0C;&#x95F4;&#x9694;&#x76F8;&#x540C;&#x4EE5;&#x53CA;&#x8DDD;&#x79BB;&#x4E2D;&#x5FC3;&#x7684;&#x4F4D;&#x7F6E;&#x76F8;&#x540C;&#x3002;<br>ABCD&#x8FD9;&#x56DB;&#x70B9;&#x4EE3;&#x8868;&#x4E0D;&#x540C;&#x7684;&#x73A9;&#x5BB6;&#x4F4D;&#x7F6E;&#x3002;&#x7EA2;&#x8272;&#x7684;&#x70B9;&#x4EE3;&#x8868;&#x73A9;&#x5BB6;&#x9009;&#x62E9;&#x5230;&#x6700;&#x63A5;&#x8FD1;&#x4ED6;&#x4EEC;&#x7684;marker&#x3002;<br>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x73A9;&#x5BB6;&#x9009;&#x62E9;&#x7684;&#x79BB;&#x4ED6;&#x4EEC;&#x6700;&#x8FD1;&#x7684;marker&#xFF0C;&#x5C31;&#x4EE3;&#x8868;&#x4ED6;&#x4EEC;&#x7684;&#x89D2;&#x5EA6;&#x662F;&#x3B8;&#x3002;&#xFF08;&#x89E3;&#x91CA;&#x5565;&#x7684;&#x5DF2;&#x7ECF;&#x61D2;&#x5F97;&#x5199;&#x4E86;&#xFF09;</p>
<p>&#x6211;&#x4EEC;&#x8981;&#x5F97;&#x77E5;&#x73A9;&#x5BB6;&#x5F53;&#x524D;&#x89D2;&#x5EA6;&#x7684;&#x65B9;&#x6CD5;&#x5341;&#x5206;&#x7B80;&#x5355;&#xFF1A;&#x628A;&#x89D2;&#x5EA6;&#x5206;&#x6570;&#x653E;&#x8FDB;marker&#x8BB0;&#x5206;&#x677F;&#x91CC;&#xFF0C;&#x7136;&#x540E;&#x8D4B;&#x503C;&#x5C31;&#x884C;&#x4E86;&#x3002;&#x4E8E;&#x662F;&#x6211;&#x4EEC;&#x7A77;&#x4E3E;&#x7684;&#x5DE5;&#x4F5C;&#x6709;&#x8FD9;&#x51E0;&#x4E2A;&#x90E8;&#x5206;&#xFF1A;</p>
<ol>
<li>&#x6BCF;&#x4E2A;&#x89D2;&#x5EA6;&#xFF1A;<ol>
<li>&#x5728;<strong>&#x6307;&#x5B9A;&#x5750;&#x6807;</strong>&#xFF08;&#x6839;&#x636E;&#x89D2;&#x5EA6;&#x548C;&#x4E2D;&#x5FC3;&#x4F4D;&#x7F6E;&#x8FDB;&#x884C;&#x8BA1;&#x7B97;&#xFF09;&#x751F;&#x6210;marker</li>
<li>&#x7ED9;&#x65B0;&#x751F;&#x6210;&#x7684;marker&#x4E00;&#x4E2A;&#x89D2;&#x5EA6;&#x5206;&#x6570;</li>
</ol>
</li>
<li><code>tp</code>&#x6307;&#x5B9A;&#x5206;&#x6570;&#xFF08;&#x89D2;&#x5EA6;&#xFF09;&#x7684;&#x73A9;&#x5BB6;&#x4E00;&#x5B9A;&#x8DDD;&#x79BB;&#xFF08;&#x6C34;&#x5E73;&#x8DDD;&#x79BB;&#x4E3A;0.5&#x7C73;&#xFF09;<br> &#x7531;&#x4E8E;&#x6211;&#x4EEC;&#x662F;&#x5411;&#x7740;&#x5706;&#x5FC3;&#x4F20;&#x9001;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x6211;&#x4EEC;&#x7684;&#x89D2;&#x5EA6;&#x662F; <code>180&#xB0;-&#x3B8;</code>&#x3002;&#x7136;&#x800C;&#x4E3A;&#x4E86;&#x65B9;&#x4FBF;&#xFF0C;&#x6211;&#x4EEC;&#x76F4;&#x63A5;&#x628A;marker&#x548C;&#x5706;&#x5FC3;&#x7684;&#x8DDD;&#x79BB;&#x8BBE;&#x4E3A;0.5&#xFF0C;&#x7136;&#x540E;tp&#x7684;&#x5750;&#x6807;&#x5C31;&#x662F; <code>-marker&#x548C;&#x5706;&#x5FC3;&#x7684;&#x76F8;&#x5BF9;&#x5750;&#x6807;</code> &#x5C31;&#x884C;&#x4E86;&#x3002;</li>
</ol>
<p>&#x7A77;&#x4E3E;&#x90E8;&#x5206;&#xFF08;&#x76F4;&#x63A5;&#x4E0A;js&#x4EE3;&#x7801;&#xFF0C;&#x6CA1;&#x4EBA;&#x4F1A;&#x624B;&#x7B97;&#x3002;&#x8FA3;&#x9E21;&#x4EE3;&#x7801;&#x8BF7;dalao&#x624B;&#x4E0B;&#x7559;&#x60C5;&#xFF09;:</p>
<pre onclick="testclick(this);"><code>&#x70B9;&#x51FB;&#x663E;&#x793A;&#x547D;&#x4EE4;&#xFF08;&#x4EE3;&#x7801;&#x548C;&#x4E0B;&#x65B9;JS&#x4E00;&#x6837;&#xFF09;</code></pre>

<pre><code class="lang-js"><span class="hljs-comment">//&#x521D;&#x59CB;&#x5316;&#x7684;&#x547D;&#x4EE4;&#xFF0C;&#x5728;&#x4E2D;&#x5FC3;&#x7684;&#x4F4D;&#x7F6E;&#x6267;&#x884C;</span>
<span class="hljs-keyword">var</span> init = [];
<span class="hljs-comment">//main&#x7684;&#x547D;&#x4EE4;</span>
<span class="hljs-keyword">var</span> main = [<span class="hljs-string">&quot;execute @a ~ ~ ~ scoreboard players operation @s angle = @e[c=1,tag=circle] angle&quot;</span>];

<span class="hljs-comment">//i&#x4E3A;&#x89D2;&#x5EA6;</span>
<span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-number">360</span>; i+=<span class="hljs-number">3</span>) {
    <span class="hljs-comment">//x&#x504F;&#x79FB;</span>
    <span class="hljs-keyword">var</span> x = <span class="hljs-number">0.5</span> * <span class="hljs-built_in">Math</span>.cos(i / <span class="hljs-number">180</span> * <span class="hljs-built_in">Math</span>.PI); <span class="hljs-comment">//&#x89D2;&#x5EA6;&#x8F6C;rad</span>
    <span class="hljs-keyword">var</span> z = <span class="hljs-number">0.5</span> * <span class="hljs-built_in">Math</span>.sin(i / <span class="hljs-number">180</span> * <span class="hljs-built_in">Math</span>.PI);

    init.push(<span class="hljs-string">&apos;summon area_effect_cloud ~&apos;</span> + x.toFixed(<span class="hljs-number">3</span>) + <span class="hljs-string">&apos; ~ ~&apos;</span> + z.toFixed(<span class="hljs-number">3</span>) + <span class="hljs-string">&apos; {Duration:2147483647,Tags:[circle,new]}&apos;</span>);
    init.push(<span class="hljs-string">&apos;scoreboard players set @e[tag=new] angle &apos;</span> + i);
    init.push(<span class="hljs-string">&apos;scoreboard players tag @e[tag=new] remove new&apos;</span>);
    main.push(<span class="hljs-string">&apos;tp @a[score_angle_min=&apos;</span> + i + <span class="hljs-string">&apos;,score_angle=&apos;</span> + i + <span class="hljs-string">&apos;] ~&apos;</span> + (-x).toFixed(<span class="hljs-number">3</span>) + <span class="hljs-string">&apos; ~ ~&apos;</span> + (-z).toFixed(<span class="hljs-number">3</span>));
}
</code></pre>
<script>
function testclick(o) {
    var init = [];
    var main = ["execute @a ~ ~ ~ scoreboard players operation @s angle = @e[c=1,tag=circle] angle"];
    for (var i = 0; i < 360; i+=3) {
        var x = 0.5 * Math.cos(i / 180 * Math.PI);
        var z = 0.5 * Math.sin(i / 180 * Math.PI);
        init.push('summon area_effect_cloud ~' + x.toFixed(3) + ' ~ ~' + z.toFixed(3) + ' {Duration:2147483647,Tags:[circle,new]}');
        init.push('scoreboard players set @e[tag=new] angle ' + i);
        init.push('scoreboard players tag @e[tag=new] remove new');
        main.push('tp @a[score_angle_min=' + i + ',score_angle=' + i + '] ~' + (-x).toFixed(3) + ' ~ ~' + (-z).toFixed(3));
    }
    $(o).text("# _init\n" + init.join("\n") + "\n\n\n" + "# main\n" + main.join("\n"));
    $(o).attr("onclick","");
}
</script>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="crown.html" class="navigation navigation-prev " aria-label="Previous page: 6.3.6 皇冠系统">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="login.html" class="navigation navigation-next " aria-label="Next page: 6.3.8 登录系统">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"6.3.7 黑洞","level":"1.7.3.7","depth":3,"next":{"title":"6.3.8 登录系统","level":"1.7.3.8","depth":3,"path":"practise/examples/login.md","ref":"practise/examples/login.md","articles":[]},"previous":{"title":"6.3.6 皇冠系统","level":"1.7.3.6","depth":3,"path":"practise/examples/crown.md","ref":"practise/examples/crown.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","lb2br","-sharing"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"expandable-chapters":{},"lb2br":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"命令进阶","language":"en","gitbook":"*","description":"一份Minecraft命令教程"},"file":{"path":"practise/examples/blackhole.md","mtime":"2017-07-29T07:48:44.125Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-11-08T10:37:55.949Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

